package question8;

import question6.Cat;
import question7.Dog;

/**
 * @FileName Test
 * @Description
 * @Author Sword
 * @date 2024-10-14
 **/
public class Test {
    public static void main(String[] args) {
        Cat cat = new Cat("小花",3);
        Dog dog = new Dog("小白",4);
        System.out.println(cat.showProfile());
        System.out.println(dog.showProfile());
        cat.speak();
        dog.speak();
    }
}
